package com.auoem.radio.ui.other;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;

import com.auoem.radio.base.BaseActivity;
import com.auoem.radio.databinding.ActivityStartBinding;

public class StartActivity extends BaseActivity implements View.OnClickListener {

    ActivityStartBinding mBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = ActivityStartBinding.inflate(getLayoutInflater());
        setContentView(mBinding.getRoot());
        initActionBar();
    }

    @Override
    public void onClick(View v) {
        if (v==mBinding.btStart){
            Intent intent=new Intent(this,FlashActivity.class);
            startActivity(intent);
        }
    }

    private void initActionBar() {
        ActionBar actionBar = getSupportActionBar();
        assert actionBar != null;
        actionBar.hide();
    }
}
